#include "gdrstdffield.h"

using namespace std;
using namespace opsrc::stdf;


// default constructor
GdrStdfField::GdrStdfField() {
}

// destructor
GdrStdfField::~GdrStdfField() {
}


gdr_data_typ GdrStdfField::getGdrDataType() const {
	return gdr_typ;	
}

void GdrStdfField::setGdrDataType(gdr_data_typ enumval) {
	this->gdr_typ = enumval;
}

int GdrStdfField::getOffset() const {
	return this->offset;
}

void GdrStdfField::setOffset(int offsetval) {
	this->offset = offsetval;
}

int GdrStdfField::getByteCount() const {
	return bytecount;
}

void GdrStdfField::setByteCount(int bytecount) {
	this->bytecount = bytecount;
}


int GdrStdfField::getTotalByteCount() const {
	return this->totalbytecount;
}

void GdrStdfField::setTotalByteCount(int totalbytecount) {
	this->totalbytecount = totalbytecount;
}


gdr_variant GdrStdfField::getData() const {
	return data;
}

void GdrStdfField::setData(gdr_variant data) {
	this->data = data;
}


void GdrStdfField::set(gdr_variant d, int offset, int len, int tlen, gdr_data_typ typ) {
	this->data = d;
	this->offset = offset;
	this->bytecount = len;
	this->totalbytecount = tlen;
	this->gdr_typ = typ;
}


			
			
